package com.tianji.promotion.service.impl;

import com.tianji.promotion.service.ISmsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author Covey
 */
@Slf4j
@Service
public class SmsService implements ISmsService {
    
    @Override
    public boolean sendSms(String phone, String content, String businessType) {
        try {
            // TODO: 这里集成真实的短信服务商
            log.info("发送短信提醒 - 手机号: {}, 内容: {}, 业务类型: {}", phone, content, businessType);
            // 模拟发送成功
            // 实际项目中这里会调用阿里云、腾讯云等短信API
            return true;
        } catch (Exception e) {
            log.error("短信发送失败", e);
            return false;
        }
    }
}